# encoding:utf-8
# ! /usr/bin/python
# filename: EnvVars.py
'''
该类定义Docker自动化部署环境变量
'''
import os
class EnvVars:
    # 配置OpenO UMC 的MYSQL数据库信息
    MYSQL_SERVER = str(os.environ.get('MYSQL_SERVER'))
    MYSQL_SERVER_PORT = str(os.environ.get('MYSQL_SERVER_PORT'))
    MYSQL_USERNAME = str(os.environ.get('MYSQL_USERNAME'))
    MYSQL_PASSWORD = str(os.environ.get('MYSQL_PASSWORD'))
    MYSQL_DATABASE = str(os.environ.get('MYSQL_DATABASE'))
    # 配置OpenO MSB的服务IP和端口
    OPENO_SERVER = str(os.environ.get('OPENO_SERVER'))
    OPENO_PORT = str(os.environ.get('OPENO_PORT'))
    # 配置性能部分的Openstack信息
    OPENSTACK_SERVER_PM = str(os.environ.get('OPENSTACK_SERVER_PM'))
    OPENSTACK_USERNAME_PM = str(os.environ.get('OPENSTACK_USERNAME_PM'))
    OPENSTACK_PASSWORD_PM = str(os.environ.get('OPENSTACK_PASSWORD_PM'))
    OPENSTACK_PROJECT_PM = str(os.environ.get('OPENSTACK_PROJECT_PM'))
    OPENSTACK_DOMAIN = str(os.environ.get('OPENSTACK_DOMAIN'))
    IDENTITYSERVICE_PORT_PM = str(os.environ.get('IDENTITYSERVICE_PORT_PM'))
    COMPUTESERVICE_PORT_PM = str(os.environ.get('COMPUTESERVICE_PORT_PM'))
    MONITORINGSERVICE_PORT_PM = str(os.environ.get('MONITORINGSERVICE_PORT_PM'))
    REGION_ID = str(os.environ.get('REGION_ID'))
    # 配置告警部分的Openstack信息，由于性能和告警两块分布在两个Openstack上测试，因此配置需要两个
    OPENSTACK_SERVER_FM = str(os.environ.get('OPENSTACK_SERVER_FM'))
    OPENSTACK_USERNAME_FM = str(os.environ.get('OPENSTACK_USERNAME_FM'))
    OPENSTACK_PASSWORD_FM = str(os.environ.get('OPENSTACK_PASSWORD_FM'))
    OPENSTACK_PROJECT_FM = str(os.environ.get('OPENSTACK_PROJECT_FM'))
    IDENTITYSERVICE_PORT_FM = str(os.environ.get('IDENTITYSERVICE_PORT_FM'))
    COMPUTESERVICE_PORT_FM = str(os.environ.get('COMPUTESERVICE_PORT_FM'))
    MONITORINGSERVICE_PORT_FM = str(os.environ.get('MONITORINGSERVICE_PORT_FM'))

